<div id='whole'>
<head>
   <link href="/site_media/css/page.css" site_media="screen" rel="Stylesheet" type="text/css" />
   <link href="/site_media/css/test.css" site_media="screen" rel="Stylesheet" type="text/css" />
</head>

<body>

    <h1> {{ title }} </h1>

{% if data %}
    <ul>
        {% for item in data.object_list %}
        <li>
        <a href="{{ item.id }}">{{ item.id }}</a>
        {% for name, value in item.items %}
        {% ifnotequal name 'id' %}
        | {{ value }}
        {% endifnotequal %}
        {% endfor %}
        </li>
    {% endfor %}
    </ul>
{% else %}
    <p>No data available.</p>
{% endif %}


<div class="pagination">
    <span class="step-links">
        {% if data.has_previous %}
            <a href="?page={{ testruns.previous_page_number }}">previous</a>
        {% endif %}

        <span class="current">
            Page {{ data.number }} of {{ data.paginator.num_pages }}.
        </span>

        {% if data.has_next %}
            <a href="?page={{ testruns.next_page_number }}">next</a>
        {% endif %}
    </span>
</div>

<a href="..">up</a>
</body>
</div>
